#include <buola/bbox/bservice.h>
#include <buola/bbox/functions.h>

using namespace buola;

int main(int pArgC,char **pArgs)
{
    buola_init(pArgC,pArgs);
    auto lService=bbox::get_service("/org/buola/example_bbox_service");
    msg_info() << "before\n";
    start_timer();
    int lAnswer=lService.Call<int()>("GetAnswer");
    end_timer();
    start_timer();
    for(int i=0;i<1000;i++)
    lAnswer+=lService.Call<int()>("GetAnswer");
    end_timer();
    start_timer();
    msg_info() << lAnswer << "\n";
    end_timer();
    return buola_finish();
}
